package a12_composite;

import java.util.List;

public class Menu implements IMenu {
	private String name;

	public Menu(String name) {
		this.name = name;

	}

	private List<IMenu> childMenu;

	@Override
	public void showMenu() {
		System.out.println(this.name);

	}

	/**
	 * @return the childMenu
	 */
	public List<IMenu> getChildMenu() {
		return childMenu;
	}

	/**
	 * @param childMenu
	 *            the childMenu to set
	 */
	public void setChildMenu(List<IMenu> childMenu) {
		this.childMenu = childMenu;
	}

}
